﻿#include <windows.h>
#include <stdio.h>
#include <iostream>
#include "CPhysMemUtils.h"

int main()
{
    BYTE byteBuf[0x100] = { 0xFF };
    memset(byteBuf, 255, sizeof(byteBuf));

    if (!CPhysMemUtils::ReadWord(0xFED80400, (uint16_t*)byteBuf))
    {
        printf("ReadPhysMem failed!\r\n");
        return -1;
    }

    uint8_t nVAl = 0xFF;

    for (int i = 0; i < _countof(byteBuf); i++)
    {
        CPhysMemUtils::GetPortValue(i, &nVAl);
        printf("%0.2X ", nVAl);
    }

    for (int i = 0; i < _countof(byteBuf); i++)
    {
        printf("%0.2X ", byteBuf[i]);
    }
    printf("\n");

    return 0;
}